var Hotjar_RS=function(e){"use strict";const t={LOG:{value:0,method:console.log},INFO:{value:1,method:console.info},DEBUG:{value:2,method:console.debug},WARN:{value:3,method:console.warn},ERROR:{value:4,method:console.error}};const s=new class{constructor(e,s){this.level=+s||t.ERROR.value,this.scope=e||""}setLogLevel(e){if(e&&"string"==typeof e){const s=e.toUpperCase();this.level=t[s]?t[s].value:this.level}}setScope(e){this.scope=e||this.scope}log(...e){this.logBase(e,t.LOG.value)}info(...e){this.logBase(e,t.INFO.value)}debug(...e){this.logBase(e,t.DEBUG.value)}warn(...e){this.logBase(e,t.WARN.value)}error(...e){this.logBase(e,t.ERROR.value)}logBase(e,s){if(this.level<=s){Object.values(t).find((e=>e.value===s)).method(...this.getLogData(e))}}getLogData(e){if(Array.isArray(e)&&e.length>0){let t="%c RS SDK";this.scope&&(t=`${t} - ${this.scope}`);t=`${t} %c ${e[0].trim()}`;const s=[];return s.push(t),s.push("font-weight: bold; background: black; color: white;"),s.push("font-weight: normal;"),s.push(...e.slice(1)),s}return e}}("Hotjar");return e.Hotjar=class{constructor(e,t,o){t.logLevel&&s.setLogLevel(t.logLevel),this.analytics=t,this.siteId=e.siteID,this.name="HOTJAR",this._ready=!1,({shouldApplyDeviceModeTransformation:this.shouldApplyDeviceModeTransformation,propagateEventsUntransformedOnError:this.propagateEventsUntransformedOnError,destinationId:this.destinationId}=null!=o?o:{})}init(){var e,t,s,o,r;e=this.siteId,window.hotjarSiteId=e,t=window,s=document,t.hj=t.hj||function(){(t.hj.q=t.hj.q||[]).push(arguments)},t._hjSettings={hjid:t.hotjarSiteId,hjsv:6},o=s.getElementsByTagName("head")[0],(r=s.createElement("script")).setAttribute("data-loader","RS_JS_SDK"),r.async=1,r.src="https://static.hotjar.com/c/hotjar-"+t._hjSettings.hjid+".js?sv="+t._hjSettings.hjsv,o.appendChild(r),this._ready=!0}isLoaded(){return this._ready}isReady(){return this.isLoaded()}identify(e){if(!(e.message.userId||e.message.anonymousId))return void s.error("user id is required for an identify call");const{traits:t}=e.message.context;window.hj("identify",e.message.userId,t)}track(e){let{event:t}=e.message;t?"string"==typeof t?(t.length>250&&(t=t.substring(0,250)),t=t.replace(/ /g,"_"),t&&window.hj("event",t)):s.error("Event name should be string"):s.error("Event name is not present")}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({}); //# sourceMappingURL=Hotjar.min.js.map